package com.ruoyi.material.mapper;

import com.ruoyi.material.domain.WarehouseOutProduct;

import java.util.List;
import java.util.Map;

/**
 * 出库单商品关联Mapper接口
 *
 * @author wng
 * @date 2024-08-04
 */
public interface WarehouseOutProductMapper {
    /**
     * 查询出库单商品关联
     *
     * @param id 出库单商品关联主键
     * @return 出库单商品关联
     */
    public WarehouseOutProduct selectWarehouseOutProductById(Long id);

    /**
     * 查询出库单商品关联列表
     *
     * @param warehouseOutProduct 出库单商品关联
     * @return 出库单商品关联集合
     */
    public List<WarehouseOutProduct> selectWarehouseOutProductList(WarehouseOutProduct warehouseOutProduct);

    /**
     * 新增出库单商品关联
     *
     * @param warehouseOutProduct 出库单商品关联
     * @return 结果
     */
    public int insertWarehouseOutProduct(WarehouseOutProduct warehouseOutProduct);

    /**
     * 批量新增出库单物品关联
     */
    public int insertWarehouseOutProductBatch(Map<String,Object> map);

    /**
     * 修改出库单商品关联
     *
     * @param warehouseOutProduct 出库单商品关联
     * @return 结果
     */
    public int updateWarehouseOutProduct(WarehouseOutProduct warehouseOutProduct);

    /**
     * 删除出库单商品关联
     *
     * @param id 出库单商品关联主键
     * @return 结果
     */
    public int deleteWarehouseOutProductById(Long id);

    /**
     * 批量删除出库单商品关联
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarehouseOutProductByIds(Long[] ids);

    /**
     * 批量删除关联记录根据出库单
     */
    public int deleteWarehouseOutProductBatchByOutIds(Long[] ids);
}
